package com.x.microshpere.order.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 订单服务
 *
 * @author fanzhaofei
 * @since 2022/11/27 16:43
 */
@EnableFeignClients(basePackages = "com.x.microsphere")
@SpringBootApplication
@EnableDiscoveryClient
public class OrderApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(OrderApplication.class, args);
        String property = applicationContext.getEnvironment().getProperty("app.user");
        System.out.println("-----------------::" + property);
    }
}
